#include<stdio.h>
#include<math.h>
int main()
{
	int n,a,b,c;
	scanf("%d",&n);
	a=n/100;
	b=(n-a*100)/10;
	c=n%10;
	if(n==a*a*a+b*b*b+c*c*c)
		printf("yes");
		
	else
		printf("no");
		
	
	return 0;
}
